<?php
	include ('../../defines.php');
	FunctionsHelper::includeFiles(
		array(
			PUBLIC_CONTROLLERS_DIRECTORY. $_POST['controller'] . '.php'
		)
	);

	switch($_POST['operation']){
		case 'Vote':
			$Surveys = new Surveys();
			$Surveys->Vote($_POST['survey'], $_POST['option']);
			break;
	}
?>